package org.crazyrunner.common.exception;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.web.servlet.HandlerExceptionResolver;
import org.springframework.web.servlet.ModelAndView;

/**
 * 自定义异常处理器
 * @author DSL
 *
 */
public class CrazyRunnerExceptionHandler implements HandlerExceptionResolver{
	private static final Log logger = LogFactory.getLog(CrazyRunnerExceptionHandler.class);
	
	@Override
	public ModelAndView resolveException(HttpServletRequest request,
			HttpServletResponse response, Object handler, Exception ex) {
		System.out.println(handler);
		System.out.println(ex);
		
		return null;
	}

}
